from django.db import models

# Create your models here.

class FaceImage(models.Model):
    person_id = models.ForeignKey('login.PersonID',
                                  on_delete = models.CASCADE,
                                  null = True,
                                  blank = True,
                                  )
    image = models.TextField()

    def __str__(self):
        return self.person_id.person_name

class ImageFace(models.Model):

    image =  models.ImageField(upload_to = 'face/static/imageface')
    image_name = models.CharField(max_length = 100)

    def __str__(self):
        return self.image_name

class FaceDemand(models.Model):
    person_id = models.ForeignKey('login.PersonID',
                                  on_delete = models.CASCADE,
                                  null = True,
                                  blank = True,)
    person_info = models.CharField(max_length = 1000)
    

    def __str__(self):
        return self.person_info
    

class FaceInfo(models.Model):
    person_id = models.ForeignKey('login.PersonID',
                                  on_delete = models.CASCADE,
                                  null = True,
                                  blank = True,)
    face_info = models.CharField(max_length = 1000)
    

    def __str__(self):
        return self.face_info















    
                                  
